let vm = new Vue({
    el: '#app',
    data:{
        success: false,
        message: ''
    },
    computed: {
        cls: function() {
            console.log('cls called')
            return this.success === true ? 'success': 'error';
        },
        foo: function () {
            console.log('foo called');
        }
    }

});